package com.hitqz.robot.schedule;

import com.hitqz.robot.util.PlcToolKit;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author xupkun
 * @date 2024/11/4
 */
@Slf4j
@Component
@AllArgsConstructor
public class HeartBeatSchedule {

    /**
     * plc 心跳数据
     */
    @Scheduled(cron = "*/2 * * * * ?")
    public static void heartBeatCheck() {
        PlcToolKit.sendHeartBeat();
    }


}
